Remember calling sendAttributes
This function creates an attribute information, for later sending it(it is necessary as the stride needs to be recalculated)
Creates and binds an index buffer.
Creates and binds a vertex buffer.
Sets the attribute infos that were appended to this object. This function must only be called after binding/creating a VBO, or it will fail
Will set the indices data. Beware that this function may allocate memory.
Sets the VBO data. Use this function only for initialization as it allocates memory.
Updates the index buffer's data. It won't allocate memory
Update the VBO. Won't cause memory allocation.
Receives a struct and creates a VAO based on its member types and names.
Populates a buffer with indices forming quads Returns if the output can contain the size
How many data slots it uses, for instance, vec3 will count +3
Accumulated size of the vertex data
For using this class, you must first define the vertex layout for after that, create the vertex buffer and/or the index buffer.